package br.com.moxeon.view.composer;

import org.springframework.context.annotation.Scope;
import org.zkoss.zk.ui.Component;

import br.com.moxeon.model.financialitems.Check;
import br.com.vexillum.control.GenericControl;

@SuppressWarnings("serial")
@org.springframework.stereotype.Component
@Scope("prototype")
public abstract class CheckComposer<E extends Check,G extends GenericControl<E>> extends BaseComposer<E, G>{
	
	private Integer numberCheck = 1;
	
	@Override
	public void doAfterCompose(Component comp) throws Exception{
		super.doAfterCompose(comp);
		loadBinder();
	}
	

	@Override
	protected String getDeactivationMessage() {		
		String msg = "Tem certeza que deseja desativar o Cheque: " + selectedEntity.getNumber();				
		return msg;
	}


	public Integer getNumberCheck() {
		return numberCheck;
	}


	public void setNumberCheck(Integer numberCheck) {
		this.numberCheck = numberCheck;
	}
	

}